import web
import config

import time


class authtest:
    def GET(self):
        view = web.template.render(config.tpl_path+'/webapp/views/test/', cache=config.cache)

        web.header('Content-type', 'text/html')
        name = 'smallfish'

        return view.def_view(name)
class sleep:
    def GET(self):
        print 'start sleep \n '
        time.sleep(10)
        print 'end sleep \n '
        return  'nnnnnnnnnn'
class laytest:
    def GET(self):
        view = web.template.render(config.tpl_path+'/webapp/views/test/', base='layout', cache=config.cache)
        web.header('Content-type', 'text/html')
        name = 'nnnnnnnnnn'
        
        return view.def_view(name)
        